import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
testCase="DBshop045_编辑积分类型"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,"客户管理","管理积分","积分类型")
firefox.find_element_by_xpath("//td[text()='消费积分']/following-sibling::td[3]/a").click()
firefox.find_element_by_xpath("//button").click()
text=firefox.find_element_by_xpath("//div[@class='alert alert-success']").text
print(text)

try:
    "积分类型编辑成功" in text
    writeLog("%s 测试通过" % testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)